package com.shuma.product.controller;

import com.shuma.product.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class TestController {
    @Autowired
    private UserService userService;

    @GetMapping("/test")
    public String hello() {
        //StpUtil.checkRole("user");  // 角色判断加上这一句就行，代表角色为user才能调用这个接口
        return "hello world!";
    }






}
